package com.aspose.cells;

class zcco extends zcdb {
   zcco(zob var1) throws Exception {
      this.d = 639;
      byte var2 = 14;
      byte[] var3 = null;
      if (var1.a.isLink()) {
         var3 = var1.a.q();
      }

      int var6;
      if (var1.a.getProgID() != null && var1.a.getProgID().length() > 0) {
         var6 = var2 + 4 + var1.a.getProgID().length() * 2;
      } else {
         var6 = var2 + 4;
      }

      if (var1.a.isLink()) {
         var6 += var3.length;
      } else {
         var6 += 4 + var1.c.length() * 2;
      }

      this.c = new byte[var6];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.a.getDisplayAsIcon() ? 0 : 1), 0, this.c, 0, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.a.r() ? 1 : 0), 0, this.c, 4, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(zase.C(var1.b)), 0, this.c, 8, 4);
      byte var4 = 0;
      if (var1.a.isLink()) {
         var4 = (byte)(var4 | 1);
      }

      this.c[12] = var4;
      byte var5 = 14;
      int var7;
      if (var1.a.getProgID() != null && var1.a.getProgID().length() > 0) {
         var7 = zcch.a(this.c, var5, var1.a.getProgID());
      } else {
         var7 = var5 + 4;
      }

      if (var1.a.isLink()) {
         System.arraycopy(var3, 0, this.c, var7, var3.length);
      } else {
         zcch.a(this.c, var7, var1.c);
      }

   }
}
